/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kylingroup.Desktop.DAO;

import com.kylingroup.Desktop.Database.DBConnection;
import java.sql.Connection;
import java.util.List;

/**
 *
 * @author kylin
 */
public interface DAOManagement {
    public boolean add(Object object);
    public boolean delete(Object object);
    public boolean update(String key,Object value,String column,Object columnvalue);
    public boolean updateAll(Object bean);
    public int totleRecords(String key,Object value);
    public Object find(String key,Object value);
    public Object findWithAnd(String key1,Object value1,String key2,Object value2);
    public Object findWithAnd(String key1,Object value1,String key2,Object value2,String key3,Object value3);
    public List<Object> findAll();
    public List<Object> findAll(String key,Object value);
    public Object Page(int curPage,int rowsPerPage);
    public void setConnection(DBConnection conn);
}
